//
//  MTCollectionViewController.m
//  ShiShiBang
//
//  Created by 宋宝强 on 16/9/21.
//  Copyright © 2016年 motianjituan. All rights reserved.
//

#import "MTCollectionViewController.h"

@implementation MTCollectionViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    [self initNavigation];
}

-(void)initNavigation {
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:[UIImage imageNamed:@"back"] highImage:[UIImage imageNamed:@"back anxia"] target:self action:@selector(backClick)];
    self.navigationItem.title = @"我的收藏";
    [self.navigationController.navigationBar setBackgroundImage:[UIImage imageWithColor:UIColorFromRGB(0x45c75a)]  forBarMetrics:UIBarMetricsDefault];
    NSMutableDictionary *attr = [NSMutableDictionary dictionary];
    attr[NSFontAttributeName] = [UIFont boldSystemFontOfSize:17];
    attr[NSForegroundColorAttributeName] = [UIColor whiteColor];
    [self.navigationController.navigationBar setTitleTextAttributes:attr];
}

-(void)backClick {
    [self.navigationController popViewControllerAnimated:YES];
}

@end
